<%
 nguoi_dung = nguoi_dung_hien_tai
%>
<% if nguoi_dung && nguoi_dung.is_ho_so_hoan_chinh? %>
<%
 ca_phes = ThongKeGioHang.ca_phe_ua_chuong(nguoi_dung)
%>
<div id="goi_y_caphe">
	<div class="container">
		<p class="hoan_chinh">
			<h3><%= t 'co the ban thich'%></h3>
			<div class="list">
				<% ca_phes.each do |item| %>
				<div class="item">
					<div class="san_pham preview">
						<a href="<%= url_for :action => 'index', :controller=> '/san_pham', :danh_muc_slug => item.san_pham.danh_muc.slug, :san_pham_slug => item.san_pham.slug  %>"><img class="hinh_anh_dai_dien img-rounded" src="<%= item.san_pham.hinh_anh %>" /></a>
						<br />
						<h4 class="ten_hang"><a href="<%= url_for :action => 'index', :controller=> '/san_pham', :danh_muc_slug => item.san_pham.danh_muc.slug, :san_pham_slug => item.san_pham.slug  %>"><%= item.san_pham.noi_dung(@ngon_ngu, true).tieu_de %></a></h4>
						<p>
							<%= t 'duoc mua x lan', :lan => item.so_luong %>
						</p>
					</div>
				</div>
				<% end %>
			</div>
		</p>
	</div>
</div>
<% else %>
<div id="goi_y_caphe">
	<div class="container">
		<p class="khong_hoan_chinh">
			<%= raw t 'ho_so_chua_hoan_chinh', :url => ( nguoi_dung ? (link_to t('cap nhat ho so day du'), :action => "cap_nhat", :controller=>"/nguoi_dung") : (link_to t('dang ky ngay'), dang_ky_path) )%>
		</p>
	</div>
</div>
<% end %>

